﻿define(["service/service", "service/httpService"], function (service) {
    service.factory("merchantService", function (httpService) {
        var methods = {
            "gets": function (params) {
                return httpService.get("/admin/merchant/gets", params);
            },
            "getoem": function (params) {
                return httpService.get("/admin/merchant/getoem", params);
            },
            "get": function (params) {
                return httpService.get("/admin/merchant/get", params);
            },
			"update": function (params) {
				return httpService.post("/admin/merchant/update", params);
			},
			"add": function (params) {
				return httpService.post("/admin/merchant/add", params);
			},
			"delete": function (id) {
				return httpService.delete("/admin/merchant/delete/" + id);
			},
			"disable": function (params) {
				return httpService.post("/admin/merchant/disable", params);
			},
			"audit": function (params) {
				return httpService.post("/admin/merchant/audit", params);
            },
            "auth_list": function (params) {
                return httpService.get("/admin/merchant/authlist", params);
            },
			"wxaudit": function (params) {
				return httpService.post("/admin/merchant/wxaudit", params);
			},
			"authedit": function (params) {
				return httpService.post("/admin/merchant/authedit", params);
			},
			"addmerchant": function (params) {
			    return httpService.post("/admin/merchant/addmerchant",params);
			},
			"auth_register": function (params) {
			    return httpService.post("/admin/merchant/authregister",params);
			},
			"changepwd": function (params) {
				return httpService.post("/admin/merchant/changepwd", params);
			},
			"certifyVerifyed": function (params) {
				return httpService.post("/admin/merchant/CertifyVerifyed", params);
			},
			"auth_register_del":function (params){
				return httpService.post("/admin/merchant/auth_register_del", params);
			}
        }
        return methods;
    });
});